package com.superyee.commonlib.constants;


import com.superyee.commonlib.BuildConfig;

/**
 * 系统配置文件
 */
public class AppConfig {
    public static final boolean DEBUG = BuildConfig.DEBUG;

    //七牛云域名
    public static String QINIU_URL = "http://statics.zhb86.com";
    public static String HOST_URL_V4 = "https://dapi.zhb86.com/";
    //直播推流地址
    public static String LIVE_PUBLISH_URL = "rtmp://pili-publish.live.zhb86.com/zhaohuoban-kuaipai-live/10290";
    //直播观看地址
    public static String LIVE_PLAY_URL = "rtmp://pili-live-rtmp.live.zhb86.com/zhaohuoban-kuaipai-live/10290";
    //回放地址
//    public static String LIVE_REPLAY_URL = "rtmp://pili-live-rtmp.live.zhb86.com/zhaohuoban-kuaipai-replay/10290";

    static {
        if (AppConfig.DEBUG) {
            //测试环境
//            HOST_URL_V4 = "http://192.168.0.220/";
            HOST_URL_V4 = "https://dapi.zhb86.com/";
        } else {
            //正式环境
            HOST_URL_V4 = "https://dapi.zhb86.com/";
        }
    }

    public static final String BASE_URL = HOST_URL_V4 + "api/app/";
    /**
     * 检查更新间隔 1天检查一次
     **/
    public static final long CHECK_UPGRADE_INTERVAL = 72000000 * 1;
    /**
     * 腾讯bugly appid
     */
    public static final String BUGLY_APPID = "cc3886f063";
    /***小米推送appid**/
    public static final String MIPUSH_APPID = "2882303761517682652";
    /***小米推送appkey*/
    public static final String MIPUSH_APPKEY = "5671768281652";
    /**
     * 小米推送证书名
     ***/
    public static final String MIPUSH_NAME = "2882303761517682652";
    /***华为推送appid**/
    public static final String HW_APPID = "100362127";

    //魅族推送appid
    public static final String MEIZU_APPID = "112396";
    //魅族推送appkey
    public static final String MEIZU_APPKEY = "28a36ca1ff58466da55227442062491c";
    //魅族推送证书名
    public static final String MEIZU_CERTIFICATIONNAME = "112396";
    // vivo 推送
    public static final String VIVOCERTIFICATENAME = "vivodev";
    //app文件存储目录
    public static String DIR_ROOT = "nongxin//Log";
    /**
     * 日志文件名后缀
     */
    public static String FILE_NAME_EXTENSION_LOG = ".log";


    /**
     * The Constant CONNECTEXCEPTION.
     */
    public static final String ERROR_NO_NETWORK = "无法连接到网络";

    public static final String UNKNOWNEXCEPTION = "抱歉,请求失败!请稍后重试!";
    public static final String CONNECTTIMEOUT = "连接超时,请重试";

    /**
     * The Constant UNKNOWNHOSTEXCEPTION.
     */
    public static final String UNKNOWNHOSTEXCEPTION = "连接远程地址失败";

    /**
     * The Constant SOCKETEXCEPTION.
     */
    public static final String SOCKETEXCEPTION = "网络连接出错，请重试";

    /**
     * The Constant SOCKETTIMEOUTEXCEPTION.
     */
    public static final String SOCKETTIMEOUTEXCEPTION = "连接超时，请重试";

    /**
     * The Constant NULLPOINTEREXCEPTION.
     */
    public static final String NULLPOINTEREXCEPTION = "抱歉，远程服务出错了";

    /**
     * The Constant NULLMESSAGEEXCEPTION.
     */
    public static final String NULLMESSAGEEXCEPTION = "抱歉，程序出错了";

    /**
     * The Constant CLIENTPROTOCOLEXCEPTION.
     */
    public static final String CLIENTPROTOCOLEXCEPTION = "Http请求参数错误";

    /**
     * 参数个数不够.
     */
    public static final String MISSINGPARAMETERS = "参数没有包含足够的值";

    /**
     * The Constant REMOTESERVICEEXCEPTION.
     */
    public static final String REMOTESERVICEEXCEPTION = "抱歉，远程服务出错了";

}
